package com.meilingcloud.biobank.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilingcloud.biobank.domain.Container;
import com.meilingcloud.biobank.domain.SampleBackup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class GeneralQueryDto extends SampleBackup {

    private static final long serialVersionUID = 1L;

    // 查询范围
    private List<Container> containers;
    // 查询条件
    private List<GeneralQueryParamDto> conditions;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private List<Date> samplingRange;

    private Integer pageNum;

    private Integer pageSize;

    private String orderByColumn;

    private String isAsc;

}
